-%define rel 5
Summary: CSS editor for web developers
Summary(pl): Edytor CSS dla programistów stron
Name: cssed
-Version: 0.1
-Release: 0.pre.%{rel}.1
+Version: 0.3.0
+Release: 1
Group: Development/Tools
License: GPL
-Source0: http://dl.sourceforge.net/%{name}/%{name}-pre%{version}-%{rel}.tar.gz
-# Source0-md5: 13c5bcd70e2dcd75d7403069b95c8049
+Source0: http://dl.sourceforge.net/cssed/%{name}-%{version}.tar.gz
+# Source0-md5: 667632e3c5f7f3493a2d98cc47470209
+Source1: %{name}.desktop
URL: http://cssed.sourceforge.net
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: gtk+2-devel >= 2.0.0
+BuildRequires: gettext-devel
+BuildRequires: gtk+2-devel >= 1:2.0.0
BuildRequires: libstdc++-devel
BuildRequires: pkgconfig
BuildRequires: vte-devel
kodowania CSS przez autouzupe³nianie oraz pod¶wietlanie sk³adni CSS.
%prep
-%setup -q -n %{name}-pre%{version}-%{rel}
+%setup -q
%build
%{__aclocal}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
-install pixmaps/%{name}-icon.png \
- $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-icon.png
-
-cat << EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
-[Desktop Entry]
-Name=Cssed
-Comment=CSS editor
-Exec=%{name}
-Icon=%{name}-icon.png
-Terminal=0
-Type=Application
-EOF
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+install pixmaps/%{name}-icon.png \
+ $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}-icon.png
+
%find_lang %{name}
%clean
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/cssed
%{_datadir}/%{name}
+%{_pkgconfigdir}/*.pc
%{_pixmapsdir}/%{name}-icon.png
%{_desktopdir}/%{name}.desktop
%{_mandir}/man?/*