[libyui-gtk/f18] Initial import (#960198)

besser82 besser82 at fedoraproject.org
Thu May 16 17:53:38 UTC 2013


commit 09a35f8721bec14bdf9f2d25718fdd2b908d51eb
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Thu May 16 19:52:40 2013 +0200

    Initial import (#960198)

 .gitignore      |    1 +
 libyui-gtk.spec |  134 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 136 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b29a287 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libyui-gtk-2.43.3-917b2ba.tar.gz
diff --git a/libyui-gtk.spec b/libyui-gtk.spec
new file mode 100644
index 0000000..470619a
--- /dev/null
+++ b/libyui-gtk.spec
@@ -0,0 +1,134 @@
+%global commit 917b2ba3dc947e384b7ae581d73cd21a04ceeaa1
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+%global libsuffix yui
+%global libname lib%{libsuffix}
+%global devel_min_ver 3.0.4
+%global major_so_ver 5
+
+%global _hardened_build 1
+
+
+Name:		%{libname}-gtk
+Version:	2.43.3
+Release:	2%{?dist}
+License:	LGPLv2 or LGPLv3
+Source:		https://github.com/%{libname}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+Group:		System Environment/Libraries
+
+BuildRequires:	doxygen
+BuildRequires:	fdupes
+BuildRequires:	graphviz
+BuildRequires:	gtk3-devel
+BuildRequires:	%{libname}-devel >= %{devel_min_ver}
+
+URL:		https://github.com/%{libname}/%{name}/
+Summary:	Gtk3 User Interface for %{libname}
+
+Provides:	%{libsuffix}-ui%{?_isa} = %{major_so_ver}
+
+
+%description
+This package contains the Gtk3 user interface component for %{libname}.
+
+
+%package devel
+
+Group:		Development/Libraries
+
+Requires:	gtk3-devel%{?_isa}
+Requires:	%{libname}-devel%{?_isa} >= %{devel_min_ver}
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+Summary:	Files needed for developing with %{name}
+
+
+%description devel
+%{libname} can be used independently of YaST for generic (C++) applications
+and has very few dependencies.
+
+You do NOT need this package for developing with %{libname}. Use of
+%{libname}-devel is sufficient for such purpose.
+This package is only needed when you want to develop an extension for
+%{name} which is not covered within the UI-plugin.
+
+
+%package doc
+
+Group:		Documentation
+
+BuildArch:	noarch
+
+Summary:	Documentation files for %{name}
+
+
+%description doc
+This package includes the developer's documentation as HTML for %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{commit}
+./bootstrap.sh
+
+
+%build
+
+mkdir -p build
+cd build
+
+%cmake .. \
+	-DPREFIX=%{_prefix} \
+	-DLIB_DIR=%{_libdir} \
+	-DDOC_DIR=%{_defaultdocdir} \
+	-DDOC_SUBDIR=%{name}-%{version} \
+	-DINSTALL_DOCS=ON \
+	-DSKIP_LATEX=ON \
+	-DCMAKE_BUILD_TYPE=RELEASE \
+	-DRESPECT_FLAGS=ON
+
+make %{?_smp_mflags}
+make %{?_smp_mflags} docs
+
+
+%install
+cd build
+
+%make_install
+
+install -pm0644 ../COPYING* %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
+install -pm0644 ../ChangeLog %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
+
+%fdupes %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
+
+
+%files
+%{_libdir}/%{libsuffix}/lib*.so.%{major_so_ver}*
+%dir %{_defaultdocdir}/%{name}-%{version}
+%doc %{_defaultdocdir}/%{name}-%{version}/C*
+
+
+%files devel
+%{_libdir}/%{libsuffix}/lib*.so
+%{_includedir}/%{libsuffix}/*
+%{_libdir}/pkgconfig/%{name}.pc
+%{_libdir}/cmake/%{name}
+
+
+%files doc
+%dir %{_defaultdocdir}/%{name}-%{version}
+%doc %{_defaultdocdir}/%{name}-%{version}/*/
+
+
+%changelog
+* Thu May 16 2013 Björn Esser <bjoern.esser at gmail.com> - 2.43.3-2
+- changed Provides: `yui_ui =` from `version` to `major_so_ver`
+- install lib*.so.`major_so_ver`* in main-pkg not lib*.so.*
+- add `-DRESPECT_FLAGS=ON`, will be honored by libyui <= 3.0.5
+- removed macros from changelog
+
+* Wed May 15 2013 Björn Esser <bjoern.esser at gmail.com> - 2.43.3-1
+- new upstream version
+- adjusted libyui-devel min-version
+- added needed bootstrap to prep
+
+* Mon May 13 2013 Björn Esser <bjoern.esser at gmail.com> - 2.43.2-1
+- Initial RPM release.
diff --git a/sources b/sources
index e69de29..e6ff93d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d45f07b7fab7ca2d7176fb5815dfe39b  libyui-gtk-2.43.3-917b2ba.tar.gz


More information about the scm-commits mailing list