forked from pool/libmetalink
410d1215fc
- Update to version 0.1.2 * This release adds RFC 5854 Metalink 4.0 support * adds dynamic attribute of the origin element in Metalink - libmetalink-autotools.patch : multiple pet peeves in autotools. OBS-URL: https://build.opensuse.org/request/show/142162 OBS-URL: https://build.opensuse.org/package/show/network:utilities/libmetalink?expand=0&rev=7
95 lines
2.2 KiB
RPMSpec
95 lines
2.2 KiB
RPMSpec
# norootforbuild
|
|
|
|
%define soname 3
|
|
|
|
Name: libmetalink
|
|
Version: 0.1.2
|
|
Release: 0
|
|
Summary: Metalink Library
|
|
Source: http://launchpad.net/libmetalink/trunk/%{version}/+download/libmetalink-%{version}.tar.bz2
|
|
URL: https://launchpad.net/libmetalink
|
|
Group: System/Libraries
|
|
License: MIT
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: libtool
|
|
Patch: libmetalink-autotools.patch
|
|
%description
|
|
Libmetalink is a Metalink library written in C language. It is intended to
|
|
provide the programs written in C to add Metalink functionality such as parsing
|
|
Metalink XML files.
|
|
|
|
%package -n libmetalink%{soname}
|
|
Summary: Metalink Library
|
|
Group: System/Libraries
|
|
|
|
%description -n libmetalink%{soname}
|
|
Libmetalink is a Metalink library written in C language. It is intended to
|
|
provide the programs written in C to add Metalink functionality such as parsing
|
|
Metalink XML files.
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Tatsuhiro Tsujikawa <tujikawa@users.sourceforge.net>
|
|
|
|
%package -n libmetalink-devel
|
|
Summary: Metalink Library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libmetalink%{soname} = %{version}
|
|
Requires: glibc-devel
|
|
|
|
%description -n libmetalink-devel
|
|
Libmetalink is a Metalink library written in C language. It is intended to
|
|
provide the programs written in C to add Metalink functionality such as parsing
|
|
Metalink XML files.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure \
|
|
--disable-static \
|
|
--with-libexpat
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
|
|
|
%install
|
|
%makeinstall
|
|
%__rm -rf "%{buildroot}%{_datadir}/doc"
|
|
%__rm "%{buildroot}%{_libdir}"/*.la
|
|
|
|
%post -n libmetalink%{soname} -p /sbin/ldconfig
|
|
%postun -n libmetalink%{soname} -p /sbin/ldconfig
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%__rm -rf "%{buildroot}"
|
|
|
|
%files -n libmetalink%{soname}
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog COPYING README
|
|
%{_libdir}/libmetalink.so.%{soname}
|
|
%{_libdir}/libmetalink.so.%{soname}.*
|
|
|
|
%files -n libmetalink-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/metalink
|
|
%{_libdir}/libmetalink.so
|
|
%{_libdir}/pkgconfig/libmetalink.pc
|
|
%{_mandir}/man3/metalink*.3*
|
|
|
|
%changelog
|
|
# vim: set sw=3 ts=3 noet:
|
|
# Local Variables:
|
|
# mode: rpm-spec
|
|
# tab-width: 3
|
|
# End:
|