commit 9acf938f8f56b12df54557382d2f3e8d4168e52a56e424435de1fc3a82f1954e Author: Pascal Bleser Date: Sun Nov 1 23:49:04 2009 +0000 0.0.3 OBS-URL: https://build.opensuse.org/package/show/network:utilities/libmetalink?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libmetalink-0.0.3.tar.bz2 b/libmetalink-0.0.3.tar.bz2 new file mode 100644 index 0000000..1e29809 --- /dev/null +++ b/libmetalink-0.0.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bdc2cc0366b2b7bcf16eff31a5edc4d39b41430856afce04ad9dd9bbcc8c42c +size 267023 diff --git a/libmetalink.changes b/libmetalink.changes new file mode 100644 index 0000000..ac37b77 --- /dev/null +++ b/libmetalink.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Nov 1 23:48:44 UTC 2009 - pascal.bleser@opensuse.org + +- initial package: 0.0.3 + diff --git a/libmetalink.spec b/libmetalink.spec new file mode 100644 index 0000000..4bb62f4 --- /dev/null +++ b/libmetalink.spec @@ -0,0 +1,94 @@ +# norootforbuild + +%define soname 1 + +Name: libmetalink +Version: 0.0.3 +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: gcc make glibc-devel pkgconfig +BuildRequires: autoconf automake libtool +BuildRequires: licenses + +%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 +Requires: licenses + +%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 + +%package -n libmetalink-devel +Summary: Metalink Library +Group: Development/Libraries/C and C++ +Requires: libmetalink%{soname} = %{version} + +%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 -n "libmetalink-%{version}" + +%build +%configure \ + --disable-static + +%__make %{?jobs:-j%{jobs}} + +%install +%makeinstall +%__rm -rf "%{buildroot}%{_datadir}/doc" +%__rm "%{buildroot}%{_libdir}"/*.la + +h=/usr/share/doc/licenses/md5/$(md5sum COPYING|cut -f1 -d" ") +test -e "$h" && %__ln_s -f "$h" COPYING + +%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 +%doc %{_mandir}/man3/metalink*.3* + +%changelog +# vim: set sw=3 ts=3 noet: +# Local Variables: +# mode: rpm-spec +# tab-width: 3 +# End: