76 lines
1.7 KiB
RPMSpec
76 lines
1.7 KiB
RPMSpec
Name: libmetalink
|
|
Version: 0.1.3
|
|
Release: 10
|
|
Summary: Metalink library written in C
|
|
License: MIT
|
|
URL: https://launchpad.net/libmetalink
|
|
Source0: https://launchpad.net/libmetalink/trunk/%{name}-%{version}/+download/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: gcc expat-devel CUnit-devel chrpath
|
|
|
|
%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 devel
|
|
Summary: Files needed for developing with %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description devel
|
|
Files needed for building applications with libmetalink.
|
|
|
|
%package help
|
|
Summary: document files for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
%description help
|
|
The %{name}-doc package contains document files.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%make_install
|
|
%delete_la
|
|
|
|
#remove rpath
|
|
chrpath -d %{buildroot}%{_libdir}/%{name}.so.3.1.0
|
|
|
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
|
echo "%{_libdir}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
|
%check
|
|
make check
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%{!?_licensedir:%global license %%doc}
|
|
%license COPYING
|
|
%doc README
|
|
%{_libdir}/libmetalink.so.*
|
|
|
|
%files devel
|
|
%dir %{_includedir}/metalink/
|
|
%{_includedir}/metalink/*.h
|
|
%{_libdir}/libmetalink.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%config(noreplace) /etc/ld.so.conf.d/*
|
|
|
|
%files help
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Thu Oct 27 2022 dongyuzhen <dongyuzhen@h-partners.com> - 0.1.3-10
|
|
- Rebuild for next release
|
|
|
|
* Tue Sep 7 2021 fuanan <fuanan3@huawei.com> - 0.1.3-9
|
|
- remove rpath and runpath of exec files and libraries
|
|
|
|
* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.3-8
|
|
- Package init
|