commit 4c254caf87e871599cbfc375be59c7e89c21309f
Author: Jakub Bogusz <[email protected]>
Date:   Fri Jun 7 21:50:21 2019 +0200

    - new; using autotools as cmake doesn't produce .pc file

 belcard-pc.patch |  14 +++++++
 belcard.spec     | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 124 insertions(+)
---
diff --git a/belcard.spec b/belcard.spec
new file mode 100644
index 0000000..3deba5b
--- /dev/null
+++ b/belcard.spec
@@ -0,0 +1,110 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Belledonne Communications' vCard 4 parsing library
+Summary(pl.UTF-8):     Biblioteka Belledonne Communications do analizy formatu 
vCard 4
+Name:          belcard
+Version:       1.0.2
+Release:       1
+License:       GPL v2+
+Group:         Libraries
+Source0:       
https://linphone.org/releases/sources/belcard/%{name}-%{version}.tar.gz
+# Source0-md5: 35f227dfa46be16d4b7ecfd828e1887e
+Patch0:                %{name}-pc.patch
+URL:           https://linphone.org/
+BuildRequires: autoconf >= 2.63
+BuildRequires: automake
+BuildRequires: bctoolbox-devel >= 0.0.3
+BuildRequires: bcunit-devel
+BuildRequires: belr-devel
+BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: libtool >= 2:2
+BuildRequires: pkgconfig
+BuildRequires: xxd
+Requires:      bctoolbox >= 0.0.3
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Belcard is a C++ library to manipulate VCard standard format.
+
+%description -l pl.UTF-8
+Belcard to biblioteka C++ do operacji na danych w standardzie VCard.
+
+%package devel
+Summary:       Header files for BelCard library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki BelCard
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      bctoolbox-devel >= 0.0.3
+Requires:      belr-devel
+Requires:      libstdc++-devel >= 6:4.7
+
+%description devel
+Header files for BelCard library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki BelCard.
+
+%package static
+Summary:       Static BelCard library
+Summary(pl.UTF-8):     Statyczna biblioteka BelCard
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static BelCard library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka BelCard.
+
+%prep
+%setup -q -n %{name}-%{version}-0
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-silent-rules \
+       %{?with_static_libs:--enable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbelcard.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README.md
+%attr(755,root,root) %{_bindir}/belcard-folder
+%attr(755,root,root) %{_bindir}/belcard-parser
+%attr(755,root,root) %{_bindir}/belcard-unfolder
+%attr(755,root,root) %{_libdir}/libbelcard.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbelcard.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbelcard.so
+%{_includedir}/belcard
+%{_pkgconfigdir}/belcard.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbelcard.a
+%endif
diff --git a/belcard-pc.patch b/belcard-pc.patch
new file mode 100644
index 0000000..1398665
--- /dev/null
+++ b/belcard-pc.patch
@@ -0,0 +1,14 @@
+--- belcard-1.0.2-0/belcard.pc.in.orig 2016-10-19 17:23:37.000000000 +0200
++++ belcard-1.0.2-0/belcard.pc.in      2019-06-07 21:41:08.214457478 +0200
+@@ -1,9 +1,9 @@
+ # This is a comment
+ prefix=@CMAKE_INSTALL_PREFIX@
+ 
+-Name:  @PROJECT_NAME@
++Name: @PACKAGE_NAME@
+ Description: Belcard is Belledonne Communications' vCard 4 parsing library
+ Version: @PROJECT_VERSION@
+ Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbelcard
+-Libs.private: @LIBS_PRIVATE@
++Libs.private: @BELR_LIBS@ @BCTOOLBOX_LIBS@
+ Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/belcard.git/commitdiff/4c254caf87e871599cbfc375be59c7e89c21309f

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to