Changeset 74 for spec/trunk/SPECS


Ignore:
Timestamp:
Nov 2, 2010, 4:02:58 PM (15 years ago)
Author:
Yuri Dario
Message:

spec: bzip2 build also the dynamic library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/bzip2.spec

    r71 r74  
    33Name: bzip2
    44Version: 1.0.6
    5 Release: 1
     5Release: 2
    66License: BSD
    77Group: Applications/File
     
    4848%build
    4949
     50make -f Makefile-libbz2_so CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
     51        CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -fpic -fPIC" \
     52        LDFLAGS="-g -Zbin-files -Zhigh-mem -Zdll -Zomf -Zargs-wild -Zargs-resp" \
     53        %{?_smp_mflags} dll
     54
    5055make CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" \
    5156        CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" \
    52         LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zexe -Zargs-wild -Zargs-resp" \
     57        LDFLAGS="-g -Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" \
    5358        %{?_smp_mflags} all
    5459
     
    7176ln -s bzdiff $RPM_BUILD_ROOT%{_bindir}/bzcmp
    7277ln -s bzmore $RPM_BUILD_ROOT%{_bindir}/bzless
    73 #ln -s libbz2.so.%{library_version} $RPM_BUILD_ROOT/%{_lib}/libbz2.so.1
     78cp bz2.dll $RPM_BUILD_ROOT/%{_libdir}
    7479#ln -s ../../%{_lib}/libbz2.so.1 $RPM_BUILD_ROOT/%{_libdir}/libbz2.so
    7580ln -s bzip2.1 $RPM_BUILD_ROOT%{_mandir}/man1/bzip2recover.1
     
    96101%defattr(-,root,root,-)
    97102%doc LICENSE
    98 #/%{_lib}/*so.*
     103%{_libdir}/*.dll
    99104
    100105%files devel
     
    102107%doc manual.html manual.pdf
    103108%{_includedir}/*
    104 /%{_libdir}/*.a
     109%{_libdir}/*.a
    105110
    106111%changelog
Note: See TracChangeset for help on using the changeset viewer.