Use find_lang macro instead of manually listing all the translated docs
And some other unrelated spec file cleanup.
This commit is contained in:
parent
e7fa96dd0f
commit
dfd7fa7bdf
@ -8,13 +8,10 @@ Source: http://download.gnome.org/sources/gnome-user-docs/3.6/gnome-user
|
|||||||
Group: Documentation
|
Group: Documentation
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: scrollkeeper
|
|
||||||
BuildRequires: gnome-doc-utils
|
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: itstool
|
BuildRequires: itstool
|
||||||
BuildRequires: yelp-tools
|
BuildRequires: yelp-tools
|
||||||
BuildRequires: autoconf automake
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains end user documentation for the GNOME desktop
|
This package contains end user documentation for the GNOME desktop
|
||||||
@ -23,48 +20,22 @@ environment.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n gnome-user-docs-%{version}
|
%setup -q -n gnome-user-docs-%{version}
|
||||||
|
|
||||||
autoreconf -i -f
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-scrollkeeper
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||||
|
|
||||||
# FIXME: %%find-lang can't deal with /usr/share/help (yet)
|
%find_lang %{name} --all-name --with-gnome
|
||||||
%files
|
|
||||||
|
%files -f %{name}.lang
|
||||||
%doc COPYING AUTHORS NEWS README
|
%doc COPYING AUTHORS NEWS README
|
||||||
/usr/share/help/C/gnome-help
|
|
||||||
/usr/share/help/C/system-admin-guide
|
|
||||||
%lang(ca) /usr/share/help/ca/gnome-help
|
|
||||||
%lang(cs) /usr/share/help/cs/gnome-help
|
|
||||||
%lang(de) /usr/share/help/de/gnome-help
|
|
||||||
%lang(el) /usr/share/help/el/gnome-help
|
|
||||||
%lang(es) /usr/share/help/es/gnome-help
|
|
||||||
%lang(fi) /usr/share/help/fi/gnome-help
|
|
||||||
%lang(fr) /usr/share/help/fr/gnome-help
|
|
||||||
%lang(gl) /usr/share/help/gl/gnome-help
|
|
||||||
%lang(hi) /usr/share/help/hi/gnome-help
|
|
||||||
%lang(hu) /usr/share/help/hu/gnome-help
|
|
||||||
%lang(id) /usr/share/help/id/gnome-help
|
|
||||||
%lang(it) /usr/share/help/it/gnome-help
|
|
||||||
%lang(ja) /usr/share/help/ja/gnome-help
|
|
||||||
%lang(lv) /usr/share/help/lv/gnome-help
|
|
||||||
%lang(nl) /usr/share/help/nl/gnome-help
|
|
||||||
%lang(pa) /usr/share/help/pa/gnome-help
|
|
||||||
%lang(pt_BR) /usr/share/help/pt_BR/gnome-help
|
|
||||||
%lang(ru) /usr/share/help/ru/gnome-help
|
|
||||||
%lang(sl) /usr/share/help/sl/gnome-help
|
|
||||||
%lang(sr@latin) /usr/share/help/sr@latin/gnome-help
|
|
||||||
%lang(sr) /usr/share/help/sr/gnome-help
|
|
||||||
%lang(sv) /usr/share/help/sv/gnome-help
|
|
||||||
%lang(te) /usr/share/help/te/gnome-help
|
|
||||||
%lang(vi) /usr/share/help/vi/gnome-help
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
|
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-1
|
||||||
- Update to 3.6.1
|
- Update to 3.6.1
|
||||||
|
- Use find_lang macro instead of manually listing all the translated docs
|
||||||
|
|
||||||
* Tue Sep 25 2012 Matthias Clasen <mclasen@redhat.com> - 3.6.0-1
|
* Tue Sep 25 2012 Matthias Clasen <mclasen@redhat.com> - 3.6.0-1
|
||||||
- Update to 3.6.0
|
- Update to 3.6.0
|
||||||
|
Loading…
Reference in New Issue
Block a user