set includedir as %includedir/md [release 1.0.4-2mamba;Sun Apr 17 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 05:02:02 +01:00
parent df0e1cc2ac
commit 51de862837
2 changed files with 73 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libmd
Message Digest functions from BSD systems.

71
libmd.spec Normal file
View File

@ -0,0 +1,71 @@
Name: libmd
Version: 1.0.4
Release: 2mamba
Summary: Message Digest functions from BSD systems
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.hadrons.org/software/libmd/
Source: https://github.com/guillemj/libmd.git/%{version}/libmd-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
Message Digest functions from BSD systems.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
./autogen
%build
%configure \
--includedir=%{_includedir}/md
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libmd.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/md
%{_includedir}/md/*.h
%{_libdir}/libmd.a
%{_libdir}/libmd.la
%{_libdir}/libmd.so
%{_libdir}/pkgconfig/libmd.pc
%{_mandir}/man3/*.3*
%doc README
%changelog
* Sun Apr 17 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.4-2mamba
- set includedir as %includedir/md
* Fri Apr 15 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.4-1mamba
- package created using the webbuild interface