Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > b61016b4f1589be0c997e7c18b88670f > files > 2

stetic-0.1.0-0.63169.1mdv2007.0.src.rpm

%if %mdkversion >= 200600
%define pkgconfigdir %_datadir/pkgconfig
%else
%define pkgconfigdir %_libdir/pkgconfig
%endif
%define svn 63169
%define rel 0.%svn.1
Summary:		GUI designer written in C# and compatible with Glade
Name:			stetic
Version: 		0.1.0
Release: 		%mkrel %rel
License:		GPL
Group:			Development/GNOME and GTK+
Source0:		%{name}-%{svn}.tar.bz2
URL:			http://www.mono-project.com/Stetic
BuildRoot:		%{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch
BuildRequires:	gtk+2-devel
BuildRequires:  gtk-sharp2 >= 2.4.0
BuildRequires:  mono-devel
BuildRequires:  automake1.7
BuildRequires:  gnome-common
BuildRequires:  gnome-sharp2

%description
This is the beginnings of Stetic, which will eventually be a new GUI
designer for GNOME. At the moment, it is just a mostly useless demo of
certain bits of Gtk#
 
%prep
%setup -q -n %name
./autogen.sh

%build
./configure --prefix=%_prefix --libdir=%_libdir
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall pkgconfigdir=%buildroot%pkgconfigdir libdir=%buildroot%_prefix/lib
%find_lang %{name}

install -m 755 -d %{buildroot}%{_menudir}
cat > %{buildroot}%{_menudir}/%{name} <<EOF
?package(%{name}): command="%{_bindir}/%name" needs="X11" icon="development_environment_section.png"\
  section="More Applications/Development/Development Environments" \
  title="Stetic" longtitle="GUI designer for Mono" startup_notify="true" xdg="true"
EOF
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Stetic
Comment=GUI designer for Mono
Exec=%{name}
Icon=development_environment_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Development-Development-Environments;GUIDesigner;Development;
EOF



%post
%update_menus
%postun
%clean_menus

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-, root, root)
%doc ChangeLog README TODO
%{_bindir}/stetic
%_datadir/applications/mandriva*
%_prefix/lib/stetic/libstetic.dll*
%_prefix/lib/stetic/libsteticui.dll*
%_prefix/lib/stetic/stetic.exe*
%pkgconfigdir/stetic.pc
%_menudir/%name

%changelog
* Mon Jul 31 2006 Götz Waschk <waschk@mandriva.org> 0.1.0-0.63169.1mdv2007.0
- xdg menu
- new snapshot

* Thu Mar 23 2006 Götz Waschk <waschk@mandriva.org> 0.1.0-0.58322.1mdk
- noarch
- new snapshot

* Fri Dec 23 2005 Nicolas Lécureuil <neoclust@mandriva.org> 0.0.0-0.43783.5mdk
- Fix BuildRequires

* Thu Aug 25 2005 Götz Waschk <waschk@mandriva.org> 0.0.0-0.43783.4mdk
- rebuild for new gtk-sharp2

* Fri Jun  3 2005 Götz Waschk <waschk@mandriva.org> 0.0.0-0.43783.3mdk
- fix buildrequires

* Thu Jun  2 2005 Götz Waschk <waschk@mandriva.org> 0.0.0-0.43783.2mdk
- fix buildrequires

* Fri Apr 29 2005 Götz Waschk <waschk@mandriva.org> 0.0.0-0.43783.1mdk
- initial package

* Thu Apr 28 2005 Tigrux <tigrux@ximian.com> 0.0.0-0.20050428cvs1mdk
- First rpm for Mandriva