2011-04-26 21:39:44 +02:00
|
|
|
%define gnomever n1.n2.n3
|
|
|
|
|
|
|
|
%define gnomemajver %(echo %gnomever | cut -d. -f 1-2)
|
|
|
|
%define gnomegroup ...
|
|
|
|
%define pkgname ...
|
|
|
|
|
|
|
|
Name: %{pkgname}
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
|
|
|
Group: ...
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
2021-05-19 19:55:23 +02:00
|
|
|
URL: https://www.gnome.org
|
|
|
|
Source: https://download.gnome.org/pub/GNOME/%{gnomegroup}/%{gnomemajver}/%{gnomever}/sources/%{pkgname}-%{version}.tar.bz2
|
2011-04-26 21:39:44 +02:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
|
|
|
%description
|
|
|
|
...
|
|
|
|
|
|
|
|
@if:library_apidocs
|
|
|
|
%package apidocs
|
|
|
|
Summary: %{pkgname} API documentation
|
|
|
|
Group: Documentation
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description apidocs
|
|
|
|
%{pkgname} API documentation.
|
|
|
|
@fi:library_apidocs
|
|
|
|
|
2012-04-13 22:45:47 +02:00
|
|
|
@if:debug_package
|
|
|
|
%debug_package
|
|
|
|
@fi:debug_package
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
@if:library_apidocs
|
|
|
|
@configure@ --enable-gtk-doc
|
|
|
|
@else:library_apidocs
|
|
|
|
@configure@
|
|
|
|
@fi:library_apidocs
|
|
|
|
@make@
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
@makeinstall@
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
@standard_docs@
|
2011-12-16 22:00:51 +01:00
|
|
|
## note: eventually add the remaining documents (if any)
|
|
|
|
# @standard_docs_devel@
|
2011-04-26 21:39:44 +02:00
|
|
|
|
|
|
|
@if:library_apidocs
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
@fi:library_apidocs
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|