diff --git a/libSM-1.2.3.tar.bz2 b/libSM-1.2.3.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..b115ffedfab27e023ece22092220da6b42efae11 Binary files /dev/null and b/libSM-1.2.3.tar.bz2 differ diff --git a/libSM.spec b/libSM.spec new file mode 100644 index 0000000000000000000000000000000000000000..25815ef0042328a5d261e4cd7082f4a69f36a8e3 --- /dev/null +++ b/libSM.spec @@ -0,0 +1,69 @@ +%define anolis_release 1 +Summary: X.Org X11 SM runtime library +Name: libSM +Version: 1.2.3 +Release: %{anolis_release}%{?dist} +License: MIT +URL: http://www.x.org + +Source0: https://www.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 + +BuildRequires: xorg-x11-util-macros +BuildRequires: autoconf automake libtool make +BuildRequires: pkgconfig +BuildRequires: xorg-x11-proto-devel +BuildRequires: xorg-x11-xtrans-devel >= 1.0.3-4 +BuildRequires: libICE-devel +BuildRequires: libuuid-devel +BuildRequires: xmlto + +%description +The X.Org X11 SM (Session Management) runtime library. + +%package devel +Summary: X.Org X11 SM development package +Requires: %{name} = %{version}-%{release} + +%description devel +The X.Org X11 SM (Session Management) development package. + +%prep +%setup -q + +%build +autoreconf -v --install --force + +%configure --with-libuuid --disable-static +make %{_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +# We intentionally don't ship *.la files +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +# we %%doc these ourselves, later, and only the text versions +rm -rf $RPM_BUILD_ROOT%{_docdir} + +%ldconfig_post +%ldconfig_postun + +%files +%doc AUTHORS COPYING ChangeLog +%{_libdir}/libSM.so.6 +%{_libdir}/libSM.so.6.* + +%files devel +%dir %{_includedir}/X11/SM +%{_includedir}/X11/SM/SM.h +%{_includedir}/X11/SM/SMlib.h +%{_includedir}/X11/SM/SMproto.h +%{_libdir}/libSM.so +%{_libdir}/pkgconfig/sm.pc + +%changelog +* Wed Apr 06 2022 mgb01105731 - 1.2.3-1 +- Init from upstream version 1.2.3 +