+%define orgname libXaw3d
Summary: A version of the MIT Athena widget set for X
Summary(de.UTF-8): 3D-Version des MIT Athena-Widgetsatzes fuer X
Summary(es.UTF-8): Widgets X athena en 3D
Summary(tr.UTF-8): 3D X Athena arayüz elemanları (widgets)
Summary(uk.UTF-8): Версія MIT Athena widget set для X
Name: Xaw3d
-Version: 1.5E
-Release: 5
+Version: 1.6.6
+Release: 1
License: MIT
Group: X11/Libraries
-Source0: ftp://ftp.visi.com/users/hawkeyd/X/%{name}-%{version}.tar.gz
-# Source0-md5: 29ecfdcd6bcf47f62ecfd672d31269a1
-Patch0: %{name}-glibc.patch
-Patch1: %{name}.patch
-Patch2: %{name}-static.patch
-Patch3: %{name}-ia64.patch
-Patch4: %{name}-i18n.patch
-Patch5: %{name}-arrowscroll.patch
-URL: http://www.visi.com/~hawkeyd/xaw3d.html
+Source0: https://xorg.freedesktop.org/releases/individual/lib/lib%{name}-%{version}.tar.xz
+# Source0-md5: 411e44d066d8b2ca07619211124d7d02
+URL: https://xorg.freedesktop.org/
BuildRequires: bison
BuildRequires: flex
-BuildRequires: xorg-cf-files
+BuildRequires: tar >= 1:1.22
+BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
BuildRequires: xorg-lib-libXmu-devel
BuildRequires: xorg-lib-libXpm-devel
-BuildRequires: xorg-util-imake
+BuildRequires: xorg-lib-libXt-devel
+BuildRequires: xorg-util-util-macros >= 1.8
+BuildRequires: xz
Requires: fileutils
-Obsoletes: libXaw3d7
+Obsoletes: libXaw3d7 < 1.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Xaw3d is an enhanced version of the MIT Athena Widget set for X
-Window that adds a 3-dimensional look to the applications with
-minimal or no source code changes.
+Xaw3d is an enhanced version of the MIT Athena Widget set for X Window
+that adds a 3-dimensional look to the applications with minimal or no
+source code changes.
%description -l de.UTF-8
Xaw3d ist eine erweiterte Version des MIT Athena Widget Set für X
Summary(uk.UTF-8): Файли для розробки програм, які використовують Xaw3d
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: xorg-lib-libX11-devel
+Requires: xorg-lib-libXext-devel
Requires: xorg-lib-libXmu-devel
Requires: xorg-lib-libXpm-devel
-Obsoletes: libXaw3d7-devel
+Requires: xorg-lib-libXt-devel
+Obsoletes: libXaw3d7-devel < 1.6
%description devel
-Xaw3d is an enhanced version of the MIT Athena Widget set for X
-Window that adds a 3-dimensional look to the applications with
-minimal or no source code changes.
+Xaw3d is an enhanced version of the MIT Athena Widget set for X Window
+that adds a 3-dimensional look to the applications with minimal or no
+source code changes.
This package includes the header files developing programs that take
full advantage of Xaw3d's features.
%description devel -l de.UTF-8
Xaw3d ist eine erweiterte Version des MIT-Athena Widget-Sets für
-X-Window, das einer Applikationen mit minimalen oder keinen
-Änderungen am Quellcode einen 3D-Look verleiht. Das Paket enthält die
+X-Window, das einer Applikationen mit minimalen oder keinen Änderungen
+am Quellcode einen 3D-Look verleiht. Das Paket enthält die
Headerdateien zur Entwicklung von Programmen, die die Vorteile von
Xaw3d voll nutzen.
Requires: %{name}-devel = %{version}-%{release}
%description static
-Xaw3d is an enhanced version of the MIT Athena Widget set for X
-Window that adds a 3-dimensional look to the applications with
-minimal or no source code changes.
+Xaw3d is an enhanced version of the MIT Athena Widget set for X Window
+that adds a 3-dimensional look to the applications with minimal or no
+source code changes.
This package includes the static library for developing programs that
take full advantage of Xaw3d's features.
%description static -l de.UTF-8
Xaw3d ist eine erweiterte Version des MIT-Athena Widget-Sets für
-X-Window, das einer Applikationen mit minimalen oder keinen
-Änderungen am Quellcode einen 3D-Look verleiht. Das Paket enthält die
-statischen Library zur Entwicklung von Programmen, die die Vorteile
-von Xaw3d voll nutzen.
+X-Window, das einer Applikationen mit minimalen oder keinen Änderungen
+am Quellcode einen 3D-Look verleiht. Das Paket enthält die statischen
+Library zur Entwicklung von Programmen, die die Vorteile von Xaw3d
+voll nutzen.
%description static -l pl.UTF-8
Xaw3d jest ulepszoną wersją biblioteki X Athena Widget, która dodaje
для разработки программ, использующих Xaw3d.
%prep
-%setup -q -c
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5
+%setup -q -n %{orgname}-%{version}
%build
-cd xc/lib/Xaw3d
-xmkmf
-mkdir X11; ln -s `pwd` X11/Xaw3d
-# kill unneeded -lXp from EXTRAXAWREQS
-%{__make} \
- CC="%{__cc}" \
- CDEBUGFLAGS="%{rpmcflags}" \
- SHLIBGLOBALSFLAGS="%{rpmldflags}" \
- EXTRA_INCLUDES=-I. \
- EXTRAXAWREQS=
+%configure \
+ --disable-silent-rules \
+ --enable-arrow-scrollbars \
+ --enable-gray-stipples \
+ --enable-internationalization \
+ --enable-multiplane-bitmaps
+
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_includedir}/X11
-%{__make} -C xc/lib/Xaw3d install \
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-mv -f $RPM_BUILD_ROOT%{_includedir}/X11/Xaw3d \
- $RPM_BUILD_ROOT%{_includedir}/Xaw3d
-ln -s %{_includedir}/Xaw3d $RPM_BUILD_ROOT%{_includedir}/X11/Xaw3d
+ln -sf X11/Xaw3d $RPM_BUILD_ROOT%{_includedir}/Xaw3d
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libXaw3d.la
+
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/libXaw3d/README.XAW3D
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+%pretrans devel
+# migration from Xaw3d 1.5E (where X11/Xaw3d was symlink to ../Xaw3d)
+if [ -d %{_includedir}/Xaw3d -a -L %{_includedir}/X11/Xaw3d ]; then
+ rm -f %{_includedir}/X11/Xaw3d
+ mv -f %{_includedir}/Xaw3d %{_includedir}/X11/Xaw3d
+ ln -snf X11/Xaw3d %{_includedir}/Xaw3d
+fi
+
%files
%defattr(644,root,root,755)
-%doc xc/lib/Xaw3d/README.XAW3D
-%attr(755,root,root) %{_libdir}/libXaw3d.so.*.*
+%doc COPYING ChangeLog README.md src/README.XAW3D
+%attr(755,root,root) %{_libdir}/libXaw3d.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libXaw3d.so.8
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libXaw3d.so
%{_includedir}/Xaw3d
%{_includedir}/X11/Xaw3d
+%{_pkgconfigdir}/xaw3d.pc
%files static
%defattr(644,root,root,755)