2011-04-26 21:39:44 +02:00
|
|
|
Name: @pck_name@
|
|
|
|
Version: @pck_version@
|
|
|
|
Release: @spec_first_release@@DISTRO_rpm@
|
|
|
|
Summary: ...
|
|
|
|
Group: ...
|
|
|
|
Vendor: @VENDOR@
|
|
|
|
Distribution: @DISTRO@
|
|
|
|
Packager: @packager_fullname@ <@packager_email@>
|
|
|
|
URL: ...
|
|
|
|
Source: ...
|
|
|
|
License: ...
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## note: run 'autospec -u -a6 @pck_name@' to get the list of build requirements.
|
|
|
|
## AUTOBUILDREQ-END
|
2012-03-25 23:46:01 +02:00
|
|
|
@if:buildrequires_buildtool
|
|
|
|
BuildRequires: @build_tool@
|
|
|
|
@fi:buildrequires_buildtool
|
2011-04-26 21:39:44 +02:00
|
|
|
@if:infopages
|
|
|
|
Requires(post): %{__install_info}
|
2012-05-08 18:30:37 +02:00
|
|
|
Requires(preun): %{__install_info}
|
2011-04-26 21:39:44 +02:00
|
|
|
@fi:infopages
|
|
|
|
|
|
|
|
%description
|
|
|
|
...
|
|
|
|
|
2012-11-07 23:17:32 +01:00
|
|
|
@if:pck_devel
|
|
|
|
## remove the following two blocks if there's no devel files
|
|
|
|
%package devel
|
|
|
|
Group: ...
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
@fi:pck_devel
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
@if:pck_apidocs
|
|
|
|
%package apidocs
|
|
|
|
Group: Documentation
|
|
|
|
Summary: %{name} API documentation
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: gtk-doc
|
|
|
|
|
|
|
|
%description apidocs
|
|
|
|
This package includes the %{name} API documentation.
|
|
|
|
@fi:pck_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
|
|
|
|
|
|
|
|
%build
|
|
|
|
@if:pck_apidocs
|
|
|
|
@configure@ --enable-gtk-doc
|
|
|
|
@else:pck_apidocs
|
|
|
|
@configure@
|
|
|
|
@fi:pck_apidocs
|
|
|
|
@make@
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
@makeinstall@
|
|
|
|
|
|
|
|
@if:i18n
|
|
|
|
%find_lang %{name}
|
|
|
|
@fi:i18n
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
@if:infopages
|
2011-12-16 22:34:35 +01:00
|
|
|
%post
|
2011-04-26 21:39:44 +02:00
|
|
|
## modify the infopage name as required
|
|
|
|
%install_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
|
2011-12-16 22:34:35 +01:00
|
|
|
%preun
|
2011-04-26 21:39:44 +02:00
|
|
|
## modify the infopage name as required
|
|
|
|
%uninstall_info %{name}.info
|
|
|
|
exit 0
|
|
|
|
@fi:infopages
|
|
|
|
|
|
|
|
@if:i18n
|
|
|
|
%files -f %{name}.lang
|
|
|
|
@else:i18n
|
|
|
|
%files
|
|
|
|
@fi:i18n
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_bindir}/%{name}
|
|
|
|
# %{_datadir}/%{name}
|
|
|
|
# %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
# %{_mandir}/man?/*
|
|
|
|
@if:infopages
|
|
|
|
# %{_infodir}/*.info.*
|
|
|
|
@fi:infopages
|
|
|
|
@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
|
|
|
|
2012-11-07 23:17:32 +01:00
|
|
|
@if:pck_devel
|
|
|
|
## remove this block if there's no devel files
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_datadir}/aclocal/*.m4
|
|
|
|
# %{_includedir}/*.h
|
|
|
|
# %{_includedir}/%{name}
|
|
|
|
# %{_libdir}/*.a
|
|
|
|
# %{_libdir}/*.la
|
|
|
|
# %{_libdir}/*.so
|
|
|
|
# %{_libdir}/pkgconfig/*.pc
|
|
|
|
# %{_mandir}/man3/*
|
|
|
|
@if:infopages
|
|
|
|
# %{_infodir}/*.info.*
|
|
|
|
@fi:infopages
|
|
|
|
@standard_docs_devel@
|
|
|
|
@fi:pck_devel
|
|
|
|
|
2011-04-26 21:39:44 +02:00
|
|
|
@if:pck_apidocs
|
|
|
|
%files apidocs
|
|
|
|
%defattr(-,root,root)
|
|
|
|
## note: this list is just an example; modify as required
|
|
|
|
# %{_datadir}/gtk-doc/html/%{name}
|
|
|
|
@fi:pck_apidocs
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* @spec_changelog_date@ @packager_fullname@ <@packager_email@> @pck_version@-@spec_first_release@@DISTRO_rpm@
|
|
|
|
- @spec_changelog_comment@
|