SPECS: medit.spec NEW

Krzysztof Lewczuk tomipnh at gmail.com
Fri May 9 16:12:05 CEST 2008


Witajcie,

Nie moglem znalezc speca z meditem, wiec go zrobilem
bazujac na fedorowym.

Pozdrawiam, Krzysiek

-- 
Perl - The only language that looks the  | http://tomipnh.jogger.pl
same before and after RSA encryption.    | xmpp://lwr@i386.pl
-------------- next part --------------
# $Revision:$, $Date:$
Summary:	Multiplatform GTK+2 text editor
Summary(pl.UTF-8):	Wieloplatformowy edytor tekstu
Name:		medit
Version:	0.9.3
Release:	1
License:	GPL
Group:		X11/Applications/Editors
Source0:	http://dl.sourceforge.net/mooedit/%{name}-%{version}.tar.bz2
# Source0-md5:	24ffe177248e94795345a11a1a668741
URL:		http://mooedit.sourceforge.net/
BuildRequires:	gtk+2-devel >= 2.2.0
BuildRequires:	intltool
BuildRequires:	libxml2-devel
BuildRequires:	pcre-devel
BuildRequires:	python-pygtk-devel
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
Medit is a multiplatform GTK+2 text editor. Features:
- Configurable syntax highlighting
- Configurable keyboard accelerators
- Multiplatform - works both on unix and windows

%description -l pl.UTF-8
Medit to wieloplatformowy editor tekstu. Cechy:
- Konfigurowalne pod?wietlanie sk?adni
- Konfigurowalne skr?ty klawiszowe
- Wieloplatformowo?? - dzia?a zar?wno na systemie Unix jak i Windows

%prep
%setup -q

%build
%configure \
	 --with-xml \
	 --with-python

%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install DESTDIR=$RPM_BUILD_ROOT

rm -rf $RPM_BUILD_ROOT%{_datadir}/mime/mime.cache

rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache

%clean
rm -rf $RPM_BUILD_ROOT

%post
update-mime-database %{_datadir}/mime &> /dev/null || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
update-mime-database %{_datadir}/mime &> /dev/null || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING COPYING.GPL INSTALL LICENSE NEWS README THANKS doc/help/
%attr(755,root,root) %{_bindir}/medit
%{_libdir}/moo/
%{_libdir}/python2.5/
%{_desktopdir}/medit.desktop
%{_iconsdir}/hicolor/48x48/apps/medit.png
%{_datadir}/locale/
%{_datadir}/mime/
%{_datadir}/moo/
%{_pixmapsdir}/medit.png
%{_mandir}/man1/medit*


%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org

$Log:$


More information about the pld-devel-en mailing list