Use find_lang macro instead of manually listing all the translated docs

And some other unrelated spec file cleanup.
This commit is contained in:
Kalev Lember 2012-10-16 16:59:22 +02:00
parent e7fa96dd0f
commit dfd7fa7bdf

View File

@ -8,13 +8,10 @@ Source: http://download.gnome.org/sources/gnome-user-docs/3.6/gnome-user
Group: Documentation
BuildArch: noarch
BuildRequires: scrollkeeper
BuildRequires: gnome-doc-utils
BuildRequires: pkgconfig
BuildRequires: gettext
BuildRequires: itstool
BuildRequires: yelp-tools
BuildRequires: autoconf automake
%description
This package contains end user documentation for the GNOME desktop
@ -23,48 +20,22 @@ environment.
%prep
%setup -q -n gnome-user-docs-%{version}
autoreconf -i -f
%build
%configure --disable-scrollkeeper
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
# FIXME: %%find-lang can't deal with /usr/share/help (yet)
%files
%find_lang %{name} --all-name --with-gnome
%files -f %{name}.lang
%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
* Tue Oct 16 2012 Kalev Lember <kalevlember@gmail.com> - 3.6.1-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
- Update to 3.6.0