Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > d9f06865e77362043e5fb4ff155b86a0 > files > 3

motif-2.3.4-1.mga3.src.rpm

%define major 4
%define libname %mklibname xm %{major}
%define mrmlibname %mklibname mrm %{major}
%define uillibname %mklibname uil %{major}
%define develname %mklibname %name -d

%define oldlibname %{mklibname openmotif 4}
%define olddevelname %{mklibname openmotif -d}

Summary: The Motif widget toolkit and window manager
Name: motif
Version: 2.3.4
Release: %mkrel 1
License: LGPLv2+
Group: System/Libraries
Source:  %{name}-%{version}-src.tgz
Source1: xmbind
URL: http://motif.ics.com/

BuildRequires:	byacc pkgconfig
BuildRequires:	flex
BuildRequires:	libxp-devel
BuildRequires:	libxt-devel
BuildRequires:	libxft-devel
BuildRequires:	x11-data-bitmaps
BuildRequires:	libjpeg-devel libpng-devel

Patch0: openMotif-2.3.0-no_demos.patch
Patch1: openMotif-2.2.3-uil_lib.patch
Patch2: openMotif-2.3.0-rgbtxt.patch
Patch3: openMotif-2.3.0-mwmrc_dir.patch
Patch4: openMotif-2.3.0-bindings.patch
Patch5: openMotif-2.3.0-no_X11R6.patch
Patch6: openMotif-2.3.0-fix-str-fmt.patch
Patch7:	openmotif-2.3.3-jpeg.patch
Patch8:	openmotif-2.3.3-automake-1.13.patch
Patch9:	motif-2.3.4-freetype-fontconfig.patch

Conflicts: lesstif <= 0.92.32-6
%rename openmotif

%description
Motif is a freely available source code distribution for the 
Motif user interface component toolkit and the Motif Window Manager. 

%package -n %{libname}
Summary: Main Motif library
Group: System/Libraries
Obsoletes: %oldlibname

%description -n %{libname}
This is the main Motif widget toolkit runtime library.

%package -n %{mrmlibname}
Summary: The Motif widget fetching library
Group: System/Libraries
Obsoletes: %oldlibname

%description -n %{mrmlibname}
This is the Motif library used for fetching widgets from UIL.

%package -n %{uillibname}
Summary: The Motif User Interface Langage runtime library
Group: System/Libraries
Obsoletes: %oldlibname

%description -n %{uillibname}
This library can be used to handle Motif UIL source files.

%package -n %{develname}
Summary: Motif development libraries and header files
Group: Development/C
Conflicts: lesstif-devel <= 0.92.32-6
Provides: lib%{name}-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Requires: %{libname} = %{version}-%{release}
Requires: %{mrmlibname} = %{version}-%{release}
Requires: %{uillibname} = %{version}-%{release}
Obsoletes: %{_lib}openmotif4-devel
%rename %olddevelname

%description -n %{develname}
This is the Motif %{version} development environment. It includes the
static libraries and header files necessary to build Motif applications.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .no_demos
%patch1 -p1 -b .uil_lib
%patch2 -p0 -b .rgbtxt
%patch3 -p1 -b .mwmrc_dir
%patch4 -p1 -b .bindings
%patch5 -p0 -b .no_X11R6
%patch6 -p1 -b .str-fmt
%patch7 -p1 -b .jpeg
%patch8 -p1 -b .automake-1_13
%patch9 -p1 -b .fontconfig

for i in doc/man/man3/{XmColumn,XmDataField}.3; do
	iconv -f windows-1252 -t utf-8 < "$i" > "${i}_"
	mv "${i}_" "$i"
done

%build
libtoolize --copy --force --install
aclocal -I.
autoheader
automake -a -c -f --foreign
autoconf
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" \
%configure2_5x \
   --enable-static

# do not use rpath
#perl -pi -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=\"-L\\\$libdir\"|g;' libtool

make clean
%make

%install
rm -rf %{buildroot}

%makeinstall_std
mkdir -p %{buildroot}/etc/X11/xinit/xinitrc.d \
         %{buildroot}/usr/include

install -m 755 %{SOURCE1} %{buildroot}/etc/X11/xinit/xinitrc.d/xmbind.sh

rm -fr %{buildroot}%{_libdir}/*.la \
       %{buildroot}%{_datadir}/Xm/doc

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README RELEASE RELNOTES
%{_sysconfdir}/X11/xinit/xinitrc.d/xmbind.sh
%{_sysconfdir}/X11/mwm/system.mwmrc
%{_bindir}/mwm
%{_bindir}/xmbind
%{_includedir}/X11/bitmaps/*
%{_datadir}/X11/bindings
%{_mandir}/man1/mwm*
%{_mandir}/man1/xmbind*
%{_mandir}/man4/mwmrc*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libXm.so.%{major}*

%files -n %{mrmlibname}
%defattr(-,root,root)
%{_libdir}/libMrm.so.%{major}*

%files -n %{uillibname}
%defattr(-,root,root)
%{_libdir}/libUil.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%{_bindir}/uil
%{_includedir}/Mrm
%{_includedir}/Xm
%{_includedir}/uil
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%{_mandir}/man1/uil.1*
%{_mandir}/man3/*
%{_mandir}/man5/*


%changelog

* Sun Feb 17 2013 cjw <cjw> 2.3.4-1.mga3
+ Revision: 398796
- rename to motif and move to core since it is now LGPLv2+
- fix url, license, summary
- 2.3.4
- rename library package to libxm
- add separate libmrm and libuil packages

  + luigiwalser <luigiwalser>
    - further fix for automake 1.13
    - fix for automake 1.13

  + umeabot <umeabot>
    - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Jun 24 2011 cjw <cjw> 2.3.3-1.mga2.nonfree
+ Revision: 112874
- imported package openmotif