[libdiscid/epel7] Cleanup
Christopher Meng
cicku at fedoraproject.org
Tue Feb 25 14:25:27 UTC 2014
commit e46b731af1d6d3dfc1be4cc5bc5b60141f41e6aa
Author: Christopher Meng <i at cicku.me>
Date: Tue Feb 25 22:25:46 2014 +0800
Cleanup
libdiscid.spec | 35 +++++++----------------------------
1 files changed, 7 insertions(+), 28 deletions(-)
---
diff --git a/libdiscid.spec b/libdiscid.spec
index 6e3e2d1..14b7b95 100644
--- a/libdiscid.spec
+++ b/libdiscid.spec
@@ -1,17 +1,11 @@
Name: libdiscid
Version: 0.6.1
Release: 1%{?dist}
-Summary: A Library for creating MusicBrainz DiscIDs
-
-Group: System Environment/Libraries
+Summary: C Library for creating MusicBrainz DiscIDs
License: LGPLv2+
URL: http://musicbrainz.org/doc/libdiscid
Source0: http://ftp.musicbrainz.org/pub/musicbrainz/%{name}/%{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires: pkgconfig
-
%description
This C library %{name} creates MusicBrainz DiscIDs from audio CDs. It
reads the table of contents (TOC) of a CD and generates an identifier
@@ -20,53 +14,38 @@ provides a submission URL for adding the DiscID to the database.
%package devel
Summary: Development files for %{name}
-Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: pkgconfig
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
-The %{name}-devel package contains libraries and header files for
+This package contains libraries and header files for
developing applications that use %{name}.
-
%prep
%setup -q
-
%build
%configure --disable-static
make %{?_smp_mflags}
-
%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
-find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+make install INSTALL="install -p" DESTDIR=%{buildroot}
+find %{buildroot} -name '*.la' -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-
%files
-%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING
%{_libdir}/*.so.*
%files devel
-%defattr(-,root,root,-)
%{_includedir}/discid/
-
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%changelog
-* Fri Nov 1 2013 Ismael Olea <ismael at olea.org> - 0.6.1-1
+* Fri Nov 01 2013 Ismael Olea <ismael at olea.org> - 0.6.1-1
- Update to 0.6.1
* Wed Sep 18 2013 Ismael Olea <ismael at olea.org> - 0.5.2-1
@@ -99,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
* Sat Nov 29 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.2-1
- Update to latest upstream (0.2.2)
-* Sat Feb 9 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.1.1-6
+* Sat Feb 09 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.1.1-6
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
* Fri Nov 16 2007 Alex Lancaster <alexl at users.sourceforge.net> - 0.1.1-5
More information about the scm-commits
mailing list