]> git.pld-linux.org Git - packages/libmd-bsd.git/commitdiff
- BSD version of libmd, with free license auto/th/libmd-bsd-0.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Feb 2016 19:30:02 +0000 (20:30 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 28 Feb 2016 19:30:02 +0000 (20:30 +0100)
libmd-bsd.spec [new file with mode: 0644]

diff --git a/libmd-bsd.spec b/libmd-bsd.spec
new file mode 100644 (file)
index 0000000..9e44f6b
--- /dev/null
@@ -0,0 +1,108 @@
+Summary:       Message Digest functions from BSD systems
+Summary(pl.UTF-8):     Funkcje skrótów wiadomości (MD) z systemów BSD
+Name:          libmd-bsd
+Version:       0.0.0
+Release:       1
+License:       BSD, ISC, Public Domain
+Group:         Libraries
+Source0:       https://libbsd.freedesktop.org/releases/libmd-%{version}.tar.xz
+# Source0-md5: 05be4882f4a982e03615722a413d141e
+URL:           https://libbsd.freedesktop.org/
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Obsoletes:     libmd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides message digest functions found on BSD systems
+either on their libc or libmd libraries and lacking on others like GNU
+systems, thus making it easier to port projects with strong BSD
+origins, without needing to embed the same code over and over again on
+each project.
+
+%description -l pl.UTF-8
+Ta biblioteka udostępnia funkcje skrótów wiadomości spotykane w
+systemach BSD w bibliotece libc lub libmd, a nie występujące na
+innych systemach, takich jak GNU. Dzięki temu ułatwia portowanie
+projektów mających silne korzenie BSD bez potrzeby osadzania ciągle
+tego samego kodu w każdym projekcie.
+
+%package devel
+Summary:       Header files for BSD MD library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki BSD MD
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Obsoletes:     libmd-devel
+
+%description devel
+Header files for BSD MD library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki BSD.
+
+%package static
+Summary:       Static BSD MD library
+Summary(pl.UTF-8):     Statyczna biblioteka BSD MD
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Obsoletes:     libmd-static
+
+%description static
+Static BSD MD library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka BSD MD.
+
+%prep
+%setup -q -n libmd-%{version}
+
+%build
+%configure \
+       --disable-silent-rules \
+       --includedir=%{_includedir}/libmd
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmd.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libmd.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libmd.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libmd.so
+%{_includedir}/libmd
+%{_pkgconfigdir}/libmd.pc
+%{_mandir}/man3/MD2*.3*
+%{_mandir}/man3/MD4*.3*
+%{_mandir}/man3/MD5*.3*
+%{_mandir}/man3/RMD160*.3*
+%{_mandir}/man3/SHA1*.3*
+%{_mandir}/man3/SHA256*.3*
+%{_mandir}/man3/SHA384*.3*
+%{_mandir}/man3/SHA512*.3*
+%{_mandir}/man3/md2.3*
+%{_mandir}/man3/md4.3*
+%{_mandir}/man3/md5.3*
+%{_mandir}/man3/rmd160.3*
+%{_mandir}/man3/sha1.3*
+%{_mandir}/man3/sha2.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libmd.a
This page took 0.389587 seconds and 4 git commands to generate.