[packages/libgedit-gfls] - new
qboosh
qboosh at pld-linux.org
Sun Jul 21 09:07:31 CEST 2024
commit 82760b88931039181ebfba998c61b3b80735d8d9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 21 07:51:47 2024 +0200
- new
libgedit-gfls.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 118 insertions(+)
---
diff --git a/libgedit-gfls.spec b/libgedit-gfls.spec
new file mode 100644
index 0000000..883529b
--- /dev/null
+++ b/libgedit-gfls.spec
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+%bcond_without static_libs # static library
+#
+Summary: Gedit file loading and saving library
+Summary(pl.UTF-8): Biblioteka Gedita do ładowania i zapisywania plików
+Name: libgedit-gfls
+Version: 0.1.0
+Release: 1
+License: LGPL v2.1+
+Group: Libraries
+#Source0Download: https://github.com/gedit-technology/libgedit-gfls/releases
+Source0: https://github.com/gedit-technology/libgedit-gfls/releases/download/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: fa465c84be20de668b00deb2723334f3
+URL: https://gitlab.gnome.org/World/gedit/libgedit-gfls
+BuildRequires: glib2-devel >= 1:2.78
+BuildRequires: gobject-introspection-devel >= 1.42.0
+BuildRequires: gtk+3-devel >= 3.22
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.25}
+BuildRequires: meson >= 0.64
+BuildRequires: ninja >= 1.5
+BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.752
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: glib2 >= 1:2.78
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Module dedicated to file loading and saving.
+
+%description -l pl.UTF-8
+Moduł służący do ładowania i zapisywania plików.
+
+%package devel
+Summary: Header files for libgedit-gfls library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgedit-gfls
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel >= 1:2.78
+
+%description devel
+Header files for libgedit-gfls library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libgedit-gfls.
+
+%package static
+Summary: Static libgedit-gfls library
+Summary(pl.UTF-8): Statyczna biblioteka libgedit-gfls
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libgedit-gfls library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libgedit-gfls.
+
+%package apidocs
+Summary: API documentation for libgedit-gfls library
+Summary(pl.UTF-8): Dokumentacja API biblioteki libgedit-gfls
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for libgedit-gfls library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libgedit-gfls.
+
+%prep
+%setup -q
+
+%build
+%meson build \
+ %{!?with_static_libs:--default-library=shared} \
+ %{!?with_apidocs:-Dgtk_doc=false}
+
+%ninja_build -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README.md
+%attr(755,root,root) %{_libdir}/libgedit-gfls-1.so.0
+%{_libdir}/girepository-1.0/Gfls-1.typelib
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libgedit-gfls-1.so
+%{_includedir}/libgedit-gfls-1
+%{_datadir}/gir-1.0/Gfls-1.gir
+%{_pkgconfigdir}/libgedit-gfls-1.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgedit-gfls-1.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libgedit-gfls-1
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgedit-gfls.git/commitdiff/82760b88931039181ebfba998c61b3b80735d8d9
More information about the pld-cvs-commit
mailing list