[packages/igwn-cmake-macros] - new

qboosh qboosh at pld-linux.org
Wed Jun 5 20:48:52 CEST 2024


commit 0fde592f78124d6ce3ecf387db22c5ab6b4309c8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jun 5 20:49:29 2024 +0200

    - new

 igwn-cmake-macros.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)
---
diff --git a/igwn-cmake-macros.spec b/igwn-cmake-macros.spec
new file mode 100644
index 0000000..332e726
--- /dev/null
+++ b/igwn-cmake-macros.spec
@@ -0,0 +1,72 @@
+Summary:	Collection of CMake functions used as a replacement for autoconf macros
+Summary(pl.UTF-8):	Zbiór funkcji CMake służących jako zamienniki makr autoconfa
+Name:		igwn-cmake-macros
+Version:	1.5.0
+Release:	1
+License:	GPL v2+
+Group:		Development/Libraries
+Source0:	http://software.igwn.org/lscsoft/source/%{name}-%{version}.tar.gz
+# Source0-md5:	07f8d0c4db2769d9933c2bca1b1759dd
+URL:		http://software.igwn.org/
+BuildRequires:	cmake >= 3.2
+BuildRequires:	doxygen
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpmbuild(macros) >= 1.605
+Requires:	cmake >= 3.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a collection of macros and scripts that were developed to aid
+in the process of converting Autotools based projects into CMake.
+
+%description -l pl.UTF-8
+Zbiór makr i skryptów stworzonych w celu ułatwienia konwersji
+projektów opartych na Autotools do CMake'a.
+
+%package doc
+Summary:	Documentation for IGWN CMake macros
+Summary(pl.UTF-8):	Dokumentacja makr CMake'a IGWN
+Group:		Documentation
+
+%description doc
+Documentation for IGWN CMake macros.
+
+%description doc -l pl.UTF-8
+Dokumentacja makr CMake'a IGWN.
+
+%prep
+%setup -q
+
+# to make package noarch
+%{__sed} -i -e '/^libdir=/d' config/igwncmake.pc.in
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DCMAKE_INSTALL_DATADIR=share
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/Developer
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog NEWS.md README.md
+%{_datadir}/igwn-cmake
+%{_npkgconfigdir}/igwncmake.pc
+
+%files doc
+%defattr(644,root,root,755)
+%doc build/doc/Developer/html/{search,*.css,*.html,*.js,*.png}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/igwn-cmake-macros.git/commitdiff/0fde592f78124d6ce3ecf387db22c5ab6b4309c8



More information about the pld-cvs-commit mailing list