raveit65 24befb3
# Conditional for release and snapshot builds. Uncomment for release-builds.
raveit65 24befb3
# %%global rel_build 1
raveit65 24befb3
raveit65 24befb3
# This is needed, because src-url contains branched part of versioning-scheme.
raveit65 24befb3
%global branch 1.7
raveit65 24befb3
raveit65 24befb3
# Settings used for build from snapshots.
raveit65 24befb3
%{!?rel_build:%global commit 62a708d461e08275d6b85985f5fa13fa8fbc85f7}
raveit65 24befb3
%{!?rel_build:%global commit_date 20131212}
raveit65 24befb3
%{!?rel_build:%global shortcommit %(c=%{commit};echo ${c:0:7})}
raveit65 24befb3
%{!?rel_build:%global git_ver git%{commit_date}-%{shortcommit}}
raveit65 24befb3
%{!?rel_build:%global git_rel .git%{commit_date}.%{shortcommit}}
raveit65 24befb3
%{!?rel_build:%global git_tar %{name}-%{version}-%{git_ver}.tar.xz}
raveit65 3243dae
raveit65 3243dae
Name:           marco
raveit65 24befb3
Version:       %{branch}.0
raveit65 24befb3
Release:       0.5%{?git_rel}%{?dist}
raveit65 24befb3
Summary:    MATE Desktop window manager
raveit65 24befb3
License:        LGPLv2+ and GPLv2+
raveit65 24befb3
URL:              http://mate-desktop.org
raveit65 24befb3
raveit65 24befb3
# for downloading the tarball use 'spectool -g -R marco.spec'
raveit65 24befb3
# Source for release-builds.
raveit65 24befb3
%{?rel_build:Source0:     http://pub.mate-desktop.org/releases/%{branch}/%%{name}-%%{version}.tar.xz}
raveit65 24befb3
# Source for snapshot-builds.
raveit65 24befb3
%{!?rel_build:Source0:    http://git.mate-desktop.org/%{name}/snapshot/%{name}-%{commit}.tar.xz#/%{git_tar}}
raveit65 3243dae
raveit65 3243dae
# needed for fixing initial-setup issue, rhbz (#962009)
raveit65 3243dae
Source1:        mini-window.png
raveit65 3243dae
Source2:        stock_delete.png
raveit65 3243dae
Source3:        stock_maximize.png
raveit65 3243dae
Source4:        stock_minimize.png
raveit65 3243dae
Source5:        window.png
raveit65 3243dae
raveit65 3243dae
# needed for fixing initial-setup issue, rhbz (#962009)
raveit65 3243dae
Patch0:         marco_add-pixbuf-inline-icons.patch
raveit65 3243dae
Patch1:         marco_implement-side-by-side-tiling.patch
raveit65 3243dae
Patch2:         marco_window-snapping-top-screen.patch
raveit65 3243dae
raveit65 3243dae
BuildRequires: desktop-file-utils
raveit65 3243dae
BuildRequires: gtk2-devel
raveit65 3243dae
BuildRequires: libcanberra-devel
raveit65 3243dae
BuildRequires: libgtop2-devel
raveit65 3243dae
BuildRequires: libSM-devel
raveit65 3243dae
BuildRequireS: libsoup-devel
raveit65 3243dae
BuildRequires: libXdamage-devel
raveit65 3243dae
BuildRequires: mate-common
raveit65 3243dae
BuildRequires: mate-dialogs
raveit65 3243dae
BuildRequires: startup-notification-devel
raveit65 3243dae
BuildRequires: yelp-tools
raveit65 3243dae
raveit65 3243dae
# http://bugzilla.redhat.com/873342
raveit65 3243dae
# https://bugzilla.redhat.com/962009
raveit65 3243dae
Provides: firstboot(windowmanager) = marco
raveit65 3243dae
raveit65 24befb3
%if 0%{?fedora} && 0%{?fedora} <= 25
raveit65 24befb3
Provides: mate-window-manager%{?_isa} = %{version}-%{release}
raveit65 b3eb976
Provides: mate-window-manager = %{version}-%{release}
raveit65 b3eb976
Obsoletes: mate-window-manager < %{version}-%{release}
raveit65 24befb3
%endif
raveit65 3243dae
raveit65 3243dae
%description
raveit65 3243dae
MATE Desktop window manager
raveit65 3243dae
raveit65 3243dae
%package devel
raveit65 3243dae
Summary: Development files for mate-window-manager
raveit65 3243dae
Requires: %{name}%{?_isa} = %{version}-%{release}
raveit65 24befb3
%if 0%{?fedora} && 0%{?fedora} <= 25
raveit65 24befb3
Provides: mate-window-manager-devel%{?_isa} = %{version}-%{release}
raveit65 b3eb976
Provides: mate-window-manager-devel = %{version}-%{release}
raveit65 b3eb976
Obsoletes: mate-window-manager-devel < %{version}-%{release}
raveit65 24befb3
%endif
raveit65 3243dae
raveit65 3243dae
%description devel
raveit65 3243dae
Development files for marco
raveit65 3243dae
raveit65 3243dae
%prep
raveit65 24befb3
%setup -q%{!?rel_build:n %{name}-%{commit}}
raveit65 3243dae
# needed for missing `po/Makefile.in.in'
raveit65 3243dae
NOCONFIGURE=1 ./autogen.sh
raveit65 3243dae
cp %{SOURCE1} src/mini-window.png
raveit65 3243dae
cp %{SOURCE2} src/stock_delete.png
raveit65 3243dae
cp %{SOURCE3} src/stock_maximize.png
raveit65 3243dae
cp %{SOURCE4} src/stock_minimize.png
raveit65 3243dae
cp %{SOURCE5} src/window.png
raveit65 3243dae
raveit65 3243dae
%patch0 -p1 -b .inline-icons
raveit65 3243dae
%patch1 -p1 -b .tiling
raveit65 3243dae
%patch2 -p1 -b .snapping-top-screen
raveit65 3243dae
raveit65 3243dae
autoreconf -if
raveit65 3243dae
raveit65 3243dae
%build
raveit65 3243dae
%configure --disable-static           \
raveit65 3243dae
           --disable-schemas-compile  \
raveit65 3243dae
           --with-gtk=2.0             \
raveit65 3243dae
           --with-x
raveit65 3243dae
raveit65 3243dae
# fix rpmlint unused-direct-shlib-dependency warning
raveit65 3243dae
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
raveit65 3243dae
raveit65 3243dae
make %{?_smp_mflags} V=1
raveit65 3243dae
raveit65 3243dae
raveit65 3243dae
%install
raveit65 24befb3
%{make_install}
raveit65 3243dae
raveit65 3243dae
find %{buildroot} -name '*.la' -exec rm -vf {} ';'
raveit65 3243dae
raveit65 3243dae
desktop-file-install                                \
raveit65 3243dae
        --delete-original                           \
raveit65 3243dae
        --dir=%{buildroot}%{_datadir}/applications  \
raveit65 3243dae
%{buildroot}%{_datadir}/applications/marco.desktop
raveit65 3243dae
raveit65 3243dae
# remove needless gsettings convert file
raveit65 3243dae
rm -f  %{buildroot}%{_datadir}/MateConf/gsettings/marco.convert
raveit65 3243dae
raveit65 3243dae
%find_lang %{name} --with-gnome --all-name
raveit65 3243dae
raveit65 3243dae
raveit65 3243dae
%post -p /sbin/ldconfig
raveit65 3243dae
raveit65 3243dae
%postun
raveit65 3243dae
/sbin/ldconfig
raveit65 3243dae
if [ $1 -eq 0 ] ; then
raveit65 3243dae
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
raveit65 3243dae
fi
raveit65 3243dae
raveit65 3243dae
%posttrans
raveit65 3243dae
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
raveit65 3243dae
raveit65 3243dae
raveit65 3243dae
%files -f %{name}.lang
raveit65 3243dae
%doc AUTHORS COPYING README ChangeLog
raveit65 3243dae
%{_bindir}/marco
raveit65 3243dae
%{_bindir}/marco-message
raveit65 3243dae
%{_datadir}/applications/marco.desktop
raveit65 3243dae
%{_datadir}/themes/ClearlooksRe
raveit65 3243dae
%{_datadir}/themes/Dopple-Left
raveit65 3243dae
%{_datadir}/themes/Dopple
raveit65 3243dae
%{_datadir}/themes/DustBlue
raveit65 3243dae
%{_datadir}/themes/Spidey-Left
raveit65 3243dae
%{_datadir}/themes/Spidey
raveit65 3243dae
%{_datadir}/themes/Splint-Left
raveit65 3243dae
%{_datadir}/themes/Splint
raveit65 3243dae
%{_datadir}/themes/WinMe
raveit65 3243dae
%{_datadir}/themes/eOS
raveit65 3243dae
%dir %{_datadir}/marco
raveit65 3243dae
%dir %{_datadir}/marco/icons
raveit65 3243dae
%{_datadir}/marco/icons/marco-window-demo.png
raveit65 3243dae
%{_datadir}/mate-control-center/keybindings/50-marco*.xml
raveit65 3243dae
%{_datadir}/mate/wm-properties
raveit65 3243dae
%{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml
raveit65 3243dae
%{_libdir}/libmarco-private.so.0*
raveit65 3243dae
%{_mandir}/man1/*
raveit65 3243dae
raveit65 3243dae
%files devel
raveit65 3243dae
%{_bindir}/marco-theme-viewer
raveit65 3243dae
%{_bindir}/marco-window-demo
raveit65 3243dae
%{_includedir}/marco-1
raveit65 3243dae
%{_libdir}/libmarco-private.so
raveit65 3243dae
%{_libdir}/pkgconfig/libmarco-private.pc
raveit65 3243dae
%{_mandir}/man1/marco-theme-viewer.1.*
raveit65 3243dae
%{_mandir}/man1/marco-window-demo.1.*
raveit65 3243dae
raveit65 3243dae
raveit65 3243dae
%changelog
raveit65 24befb3
* Fri Dec 20 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-0.5.git20131212.62a708d
raveit65 24befb3
- make Maintainers life easier and use better git snapshot usage, Thanks to Björn Esser
raveit65 24befb3
- use modern 'make install' macro
raveit65 24befb3
- improve obsoletes/provides, add limits
raveit65 24befb3
raveit65 b3eb976
* Sat Dec 14 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-0.4.git0403454e
raveit65 b3eb976
- remove isa tags from obsoletes/provides
raveit65 b3eb976
 
raveit65 3243dae
* Wed Dec 11 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-0.3.git0403454e
raveit65 3243dae
- using 8 digets in git version to update mate-window-manager
raveit65 3243dae
raveit65 3243dae
* Wed Dec 11 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.7.0-0.2.git0403454
raveit65 3243dae
- rename mate-window-manager to marco
raveit65 3243dae
raveit65 3243dae
* Fri Dec 06 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.7.0-1.1.git0403454
raveit65 3243dae
- Update to 1.7.0 git snapshot
raveit65 3243dae
raveit65 3243dae
* Wed Nov 13 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.2-6
raveit65 3243dae
- start with side-by-side-tiling and windows-snapping-top-screen support for f20
raveit65 3243dae
raveit65 3243dae
* Fri Sep 27 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.2-5
raveit65 3243dae
- fix initial-setup issue, rhbz (#962009)
raveit65 3243dae
raveit65 3243dae
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-4
raveit65 3243dae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
raveit65 3243dae
raveit65 3243dae
* Sat Jun 15 2013 Wolfgang Ulbrich <chat-to-me@raveit.de> - 1.6.2-3
raveit65 3243dae
- remove gsettings convert file
raveit65 3243dae
raveit65 3243dae
* Tue Jun 11 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.2-2
raveit65 3243dae
- Add libgtop2-devel to BR's
raveit65 3243dae
raveit65 3243dae
* Sat Jun 08 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.2-1
raveit65 3243dae
- Update to latest upstream release
raveit65 3243dae
- Update datadir to mate-window-manager instead of marco
raveit65 3243dae
raveit65 3243dae
* Sat Jun 08 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.1-2
raveit65 3243dae
- Fix initial-setup, hopefully.
raveit65 3243dae
raveit65 3243dae
* Wed Apr 03 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.1-1
raveit65 3243dae
- Bug fix release. See changelog.
raveit65 3243dae
raveit65 3243dae
* Wed Apr 03 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.6.0-1
raveit65 3243dae
- Update to latest 1.6.0 stable release.
raveit65 3243dae
raveit65 3243dae
* Mon Mar 25 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.5-1
raveit65 3243dae
- Update to latest upstream release
raveit65 3243dae
- Own dirs that we are supposed to owp
raveit65 3243dae
raveit65 3243dae
* Fri Feb 22 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.4-1
raveit65 3243dae
- Update to latest upstream release
raveit65 3243dae
raveit65 3243dae
* Mon Feb 18 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.3-4
raveit65 3243dae
- Add latest upstream commits
raveit65 3243dae
raveit65 3243dae
* Tue Jan 29 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.3-3
raveit65 3243dae
- Add some configure flags
raveit65 3243dae
raveit65 3243dae
* Fri Jan 18 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.3-2
raveit65 3243dae
- Sort BR's
raveit65 3243dae
- Remove unneeded obsoletes tag
raveit65 3243dae
raveit65 3243dae
* Mon Jan 14 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.3-1
raveit65 3243dae
- Update to latest upstream release
raveit65 3243dae
raveit65 3243dae
* Fri Jan 11 2013 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.2-11
raveit65 3243dae
- Convert back to old BR format
raveit65 3243dae
- Drop unneeded BRs
raveit65 3243dae
- Own directories that are supposed to be owned (marco-1)
raveit65 3243dae
- Fix missing "X-Mate" category.
raveit65 3243dae
- Add gsettings data convert file for users upgrading from 1.4
raveit65 3243dae
- Fix update of gsettings enum preferences
raveit65 3243dae
raveit65 3243dae
* Mon Dec 10 2012 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.2-10
raveit65 3243dae
- Rebuild for ARM
raveit65 3243dae
raveit65 3243dae
* Sun Nov 25 2012 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.2-9
raveit65 3243dae
- Remove hard requires on mwm and mate-themes.
raveit65 3243dae
raveit65 3243dae
* Sun Nov 25 2012 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.2-8
raveit65 3243dae
- Add xdamage as it is required for build
raveit65 3243dae
raveit65 3243dae
* Wed Nov 14 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.2-7
raveit65 3243dae
- move development files to devel
raveit65 3243dae
- remove the config.h defines from %%build section
raveit65 3243dae
raveit65 3243dae
* Tue Nov 13 2012 Dan Mashal <dan.mashal@fedoraproject.org> - 1.5.2-6
raveit65 3243dae
- Update configure flags, add disable scrollkeeper mainly
raveit65 3243dae
raveit65 3243dae
* Tue Nov 13 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.2-5
raveit65 3243dae
- add patch to fix startup rendering effect with composite enabled 
raveit65 3243dae
raveit65 3243dae
* Tue Nov 06 2012 Rex Dieter <rdieter@fedoraproject.org> 1.5.2-4
raveit65 3243dae
- Provides: firstboot(windowmanager) (#873342)
raveit65 3243dae
raveit65 3243dae
* Mon Nov 05 2012 Rex Dieter <rdieter@fedoraproject.org> 1.5.2-3
raveit65 3243dae
- drop Provides: firstboot(windowmanager) until bug #873342 is fixed
raveit65 3243dae
raveit65 3243dae
* Sat Nov 03 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.2-2
raveit65 3243dae
- Provides firstboot(windowmanager) mate-window-manager
raveit65 3243dae
raveit65 3243dae
* Mon Oct 29 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.5.2-1
raveit65 3243dae
- update to 1.5.2 release
raveit65 3243dae
- add schema scriptlets and remove mateconf scriptlets
raveit65 3243dae
- add requires gsettings-desktop-schemas
raveit65 3243dae
- add build requires gsettings-desktop-schemas-devel and dconf-devel
raveit65 3243dae
- change build requires style
raveit65 3243dae
raveit65 3243dae
* Wed Oct 17 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.1-12
raveit65 3243dae
- Fix crash if you have lots of workspaces
raveit65 3243dae
raveit65 3243dae
* Tue Oct 16 2012 Leigh Scott <leigh123linux@googlemail.com> - 1.4.1-11
raveit65 3243dae
- filter provides
raveit65 3243dae
- fix build requires
raveit65 3243dae
- fix reqires
raveit65 3243dae
- define some defaults
raveit65 3243dae
- Add patch to allow breaking out from maximization during mouse resize
raveit65 3243dae
  (gnome bz 622517)
raveit65 3243dae
raveit65 3243dae
* Wed Sep 26 2012 Rex Dieter <rdieter@fedoraproject.org> - 1.4.1-10
raveit65 3243dae
- fix ldconfig scriptlets
raveit65 3243dae
- use desktop-file-validate again
raveit65 3243dae
- own %%{_datadir}/mate/wm-properties/
raveit65 3243dae
raveit65 3243dae
* Tue Sep 25 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-9
raveit65 3243dae
- Remove mateconf obsolete scriplet
raveit65 3243dae
raveit65 3243dae
* Mon Sep 24 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-8
raveit65 3243dae
- rerefix mate-conf scriptlets. Add export line to REALLY not install schemas with make install.
raveit65 3243dae
- comment out desktop-file-validate.
raveit65 3243dae
raveit65 3243dae
* Mon Sep 17 2012 Rex Dieter <rdieter@fedoraproject.org> 1.4.1-7
raveit65 3243dae
- fix/simplify dir ownership
raveit65 3243dae
- omit not-needed/broken Obsoletes
raveit65 3243dae
- (re)fix scriptlets :)
raveit65 3243dae
raveit65 3243dae
* Sat Sep 15 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-6
raveit65 3243dae
- Move post and postun scriptlets to proper location
raveit65 3243dae
raveit65 3243dae
* Sat Sep 15 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-5
raveit65 3243dae
- Remove onlyshowin since it is not needed any more with updated desktop-file-utils
raveit65 3243dae
raveit65 3243dae
* Sat Sep 15 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-4
raveit65 3243dae
- Update source to note git version.
raveit65 3243dae
raveit65 3243dae
* Sun Sep 09 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-3
raveit65 3243dae
- Fix broken dependencies, update to latest github version which contains fixes for desktop-file-utils
raveit65 3243dae
raveit65 3243dae
* Mon Sep 03 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-2
raveit65 3243dae
- Add environment variable to install section and further obsoletes to prevent dependency breakage
raveit65 3243dae
raveit65 3243dae
* Sun Sep 02 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.1-1
raveit65 3243dae
- Upgrade to new upstream version.
raveit65 3243dae
raveit65 3243dae
* Mon Aug 27 2012 Rex Dieter <rdieter@fedoraproject.org> 1.4.0-5
raveit65 3243dae
- drop unneeded python-related build deps
raveit65 3243dae
- %%configure --disable-schemas-install
raveit65 3243dae
- fix/simplify some parent-dir ownership
raveit65 3243dae
raveit65 3243dae
* Mon Aug 27 2012 Rex Dieter <rdieter@fedoraproject.org>  1.4.0-4
raveit65 3243dae
- main pkg Requires: %%name-libs
raveit65 3243dae
- drop needless icon scriptlets
raveit65 3243dae
- s|MATE|X-MATE| .desktop Categories on < f18 only
raveit65 3243dae
- License: GPLv2+
raveit65 3243dae
raveit65 3243dae
* Sun Aug 26 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.0-3
raveit65 3243dae
- Own theme directories that are being installed, switch from po_package to namefor lang files, bump release version
raveit65 3243dae
raveit65 3243dae
* Sun Aug 26 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.0-2
raveit65 3243dae
- Add mateconf scriptlets
raveit65 3243dae
raveit65 3243dae
* Sun Aug 12 2012 Dan Mashal <dan.mashal@fedoraproject.org> 1.4.0-1
raveit65 3243dae
- Initial build