monodevelop/monodevelop.spec

140 lines
4.4 KiB
RPMSpec
Raw Normal View History

Name: monodevelop
Version: 4.0.9
Release: 1mamba
Summary: An IDE primarily designed for C-sharp and other .NET languages
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://monodevelop.com/
#Source: http://ftp.novell.com/pub/mono/sources/monodevelop/monodevelop-%{version}.tar.bz2
Source: http://download.mono-project.com/sources/monodevelop/monodevelop-%{version}.tar.bz2
Patch0: monodevelop-3.0.4.7-configure-disable-tests.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: gnome-sharp-devel
BuildRequires: gtk-sharp2-devel
BuildRequires: gtk-sharp-devel
BuildRequires: mono-core
BuildRequires: mono-data
BuildRequires: mono-devel
BuildRequires: mono-web
BuildRequires: mono-winforms
## AUTOBUILDREQ-END
BuildRequires: mono-addins
Requires: mono-core
Requires: mono-data
Requires: mono-web
Requires: mono-winforms
Requires: mono-addins
Requires: gnome-sharp
BuildRoot: %{_tmppath}/%{name}-%{version}-root
#Configuration summary
#
# * Installation prefix = /usr
# * C# compiler = /usr/bin/gmcs
# * Mono class library development extensions: yes
# * Version control providers:
# * Subversion (Unix): yes
# * Platform bindings: GNOME
# * Unit tests: no
# * Mozilla location:
%description
MonoDevelop is an IDE primarily designed for C# and other .NET languages. MonoDevelop enables developers to quickly write desktop and ASP.NET Web applications on Linux, Windows and Mac OSX. MonoDevelop makes it easy for developers to port .NET applications created with Visual Studio to Linux and to maintain a single code base for all platforms.
%prep
%setup -q
#-D -T
#%patch0 -p1
# FIX for:
#error: Failed dependencies:
# mono(System.Data.Entity) = 4.0.0.0 is needed by monodevelop-4.0.9-1mamba.i586
# mono(System.Web.WebPages.Deployment) = 2.1.0.0 is needed by monodevelop-4.0.9-1mamba.i586
%define __mono_requires %{_builddir}/monodevelop-%{version}/mono_requires.sh
cat > mono_requires.sh << _EOF
%{_prefix}/lib/rpm/mono-find-requires %{_builddir} %{buildroot} %{_libdir} | \
grep -v "System.Data.Entity" |
grep -v "System.Web.WebPages.Deployment"
_EOF
%define __mono_provides %{_builddir}/monodevelop-%{version}/mono_provides.sh
cat > mono_provides.sh << _EOF
%{_prefix}/lib/rpm/mono-find-provides %{_builddir} %{buildroot} %{_libdir}
_EOF
chmod +x mono_requires.sh mono_provides.sh
%build
%configure \
--disable-update-mimedb \
--disable-update-desktopdb
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%{_bindir}/update-mime-database %{_datadir}/mime 2>&1 > /dev/null
update-desktop-database &> /dev/null || :
exit 0
%postun
if [ "$1" -eq "0" ]; then
%{_bindir}/update-mime-database %{_datadir}/mime 2>&1 > /dev/null
update-desktop-database &> /dev/null || :
fi
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/mdtool
%{_bindir}/monodevelop
%dir %{_libdir}/monodevelop
%{_libdir}/monodevelop/AddIns
%{_libdir}/monodevelop/bin
%{_libdir}/monodevelop/data
%dir %{_libdir}/monodevelop/locale
%dir %{_libdir}/monodevelop/locale/*
%dir %{_libdir}/monodevelop/locale/*/LC_MESSAGES
%{_libdir}/monodevelop/locale/*/LC_MESSAGES/monodevelop.mo
%{_datadir}/applications/monodevelop.desktop
%{_datadir}/icons/hicolor/*/apps/monodevelop.png
%{_datadir}/icons/hicolor/scalable/apps/monodevelop.svg
%{_datadir}/mime/packages/monodevelop.xml
%{_libdir}/pkgconfig/monodevelop-core-addins.pc
%{_libdir}/pkgconfig/monodevelop.pc
%{_mandir}/man1/mdtool.1*
%{_mandir}/man1/monodevelop.1*
%doc AUTHORS COPYING
#ChangeLog README
%changelog
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 4.0.9-1mamba
- automatic version update by autodist
* Mon Feb 25 2013 Automatic Build System <autodist@mambasoft.it> 4.0-1mamba
- automatic version update by autodist
* Fri Jan 11 2013 Automatic Build System <autodist@mambasoft.it> 3.1.1-1mamba
- automatic version update by autodist
* Mon Aug 06 2012 Automatic Build System <autodist@mambasoft.it> 3.0.3.5-1mamba
- update to 3.0.3.5
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 2.5.91-1mamba
- automatic update by autodist
* Mon Mar 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.4.2-1mamba
- package created by autospec