| 1 | %define pkg_version 0.2.2 |
|---|
| 2 | %define pkg_release 3%{?_dist_release} |
|---|
| 3 | |
|---|
| 4 | Summary: A library for creating MusicBrainz DiscIDs from audio CDs |
|---|
| 5 | Summary(ja): 音楽 CD から MusicBrainz ディスク ID を作成するためのライブラリ |
|---|
| 6 | Name: libdiscid |
|---|
| 7 | Version: %{pkg_version} |
|---|
| 8 | Release: %{pkg_release} |
|---|
| 9 | Source0: %{name}-%{version}.tar.gz |
|---|
| 10 | |
|---|
| 11 | License: LGPL |
|---|
| 12 | Group: System Environment/Libraries |
|---|
| 13 | URL: http://musicbrainz.org/doc/libdiscid/ |
|---|
| 14 | |
|---|
| 15 | BuildRequires: pkgconfig |
|---|
| 16 | |
|---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 18 | |
|---|
| 19 | Vendor: Project Vine |
|---|
| 20 | Distribution: Vine Linux |
|---|
| 21 | Packager: Takemikaduchi |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | %description |
|---|
| 25 | Libdiscid is a C library for creating MusicBrainz DiscIDs from audio CDs. |
|---|
| 26 | It reads a CD's table of contents (TOC) and generates an identifier which |
|---|
| 27 | can be used to lookup the CD at MusicBrainz. Additionally, it provides a |
|---|
| 28 | submission URL for adding the DiscID to the database. |
|---|
| 29 | |
|---|
| 30 | %package devel |
|---|
| 31 | Summary: Development files for %{name} |
|---|
| 32 | Summary(ja): %{name} の開発用ファイル |
|---|
| 33 | Group: Development/Libraries |
|---|
| 34 | Requires: %{name} = %{version}-%{release} |
|---|
| 35 | Requires: pkgconfig |
|---|
| 36 | |
|---|
| 37 | %description devel |
|---|
| 38 | The libdiscid-devel package contains libraries and header files for |
|---|
| 39 | developing applications that use libdiscid. |
|---|
| 40 | |
|---|
| 41 | %prep |
|---|
| 42 | %setup -q |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | %build |
|---|
| 46 | %configure --disable-static |
|---|
| 47 | %{__make} %{?_smp_mflags} |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | %install |
|---|
| 51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 52 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 53 | |
|---|
| 54 | %{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/*.la |
|---|
| 55 | |
|---|
| 56 | %clean |
|---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 58 | |
|---|
| 59 | %post -p /sbin/ldconfig |
|---|
| 60 | |
|---|
| 61 | %postun -p /sbin/ldconfig |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | %files |
|---|
| 65 | %defattr(-,root,root) |
|---|
| 66 | %doc COPYING ChangeLog README |
|---|
| 67 | %{_libdir}/*.so.* |
|---|
| 68 | |
|---|
| 69 | %files devel |
|---|
| 70 | %defattr(-,root,root) |
|---|
| 71 | %{_libdir}/libdiscid.so |
|---|
| 72 | %{_libdir}/pkgconfig/libdiscid.pc |
|---|
| 73 | %{_includedir}/discid |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %changelog |
|---|
| 77 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.2.2-3 |
|---|
| 78 | - fixed Group typo |
|---|
| 79 | |
|---|
| 80 | * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.2-2 |
|---|
| 81 | - rebuild package |
|---|
| 82 | |
|---|
| 83 | * Sun May 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2.2-1 |
|---|
| 84 | - initial build for Vine Linux |
|---|
| 85 | |
|---|