From ed8d5ccaddec082e65b237a72154ddc420b0fdff Mon Sep 17 00:00:00 2001 From: aalvarez Date: Thu, 13 Jun 2013 14:43:00 +0200 Subject: [PATCH] libmetalink adopted. Updated for new upstream release. --- .gitignore | 1 + dead.package | 1 - libmetalink.spec | 103 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 105 insertions(+), 1 deletion(-) delete mode 100644 dead.package create mode 100644 libmetalink.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index a772b51..4eca4aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ libmetalink-0.0.3.tar.bz2 +/libmetalink-0.1.2.tar.bz2 diff --git a/dead.package b/dead.package deleted file mode 100644 index b8c7442..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -This package was retired on 2012-02-06 due to lack of a maintainer. diff --git a/libmetalink.spec b/libmetalink.spec new file mode 100644 index 0000000..f495574 --- /dev/null +++ b/libmetalink.spec @@ -0,0 +1,103 @@ +Name: libmetalink +Version: 0.1.2 +Release: 3%{?dist} +Summary: Metalink library written in C +Group: System Environment/Libraries +License: MIT +URL: https://launchpad.net/libmetalink +Source0: http://launchpad.net/libmetalink/trunk/packagingfix/+download/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: expat-devel +BuildRequires: CUnit-devel + +%description +libmetalink is a Metalink C library. It adds Metalink functionality such as +parsing Metalink XML files to programs written in C. + +%package devel +Summary: Files needed for developing with %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Files needed for building applications with libmetalink. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%check +make check + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name *.la -exec rm {} \; + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING README +%{_libdir}/libmetalink.so.* + + +%files devel +%dir %{_includedir}/metalink/ +%{_includedir}/metalink/metalink_error.h +%{_includedir}/metalink/metalink.h +%{_includedir}/metalink/metalink_parser.h +%{_includedir}/metalink/metalink_types.h +%{_includedir}/metalink/metalinkver.h +%{_libdir}/libmetalink.so +%{_libdir}/pkgconfig/%{name}.pc +%{_mandir}/man3/* + + +%changelog +* Thu Jun 13 2013 Alejandro Alvarez - 0.1.2-3 +- Added BuildRequires: CUnit-devel +- Added %%check section +- Removed %%defattr +- Moved man pages to devel package. There is no need for -doc + +* Mon Jun 10 2013 Alejandro Alvarez - 0.1.2-2 +- Escaped macros in changelog +- Changed packages summaries +- Renamed -docs to -doc, and changed its group to Documentation +- Fixed -devel dependencies +- Removed -docs dependency on the main package +- All header files specified explicitly + +* Mon Apr 22 2013 Alejandro Alvarez - 0.1.2-1 +- Updated for new upstream release +- Man pages moved to libmetalink-docs package + +* Fri Jan 13 2012 Fedora Release Engineering - 0.0.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.0.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 0.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu May 07 2009 Ant Bryan - 0.0.3-4 +- Remove Provides: libmetalink-static = %%{version}-%%{release} + +* Tue May 06 2009 Ant Bryan - 0.0.3-3 +- Use %%{_docdir} instead of /usr/share/doc +- Own /usr/include/metalink + +* Wed Apr 29 2009 Ant Bryan - 0.0.3-2 +- Incorporate suggested changes: remove .la files, --disable static. + +* Mon Apr 27 2009 Ant Bryan - 0.0.3-1 +- Initial package, 0.0.3. + diff --git a/sources b/sources new file mode 100644 index 0000000..bcaff3c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e60ea56d910ebfe4c303808db497e92a libmetalink-0.1.2.tar.bz2