Repository: conan-io/conan-center-index

Issue:
[libselinux] libselinux/:3.0 Missing symlinks=True in recipe
## Package and Environment Details
  * Package Name/Version: **libselinux/3.0**
  * Operating System+version: **Linux Fedora 31**
  * Compiler+version: **GCC 9**
  * Conan version: **conan 1.26.0**
  * Python version: **Python 3.7.7**

## Conan profile
```
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
```

### Steps to reproduce

`conan install -o shared=True libselinux/3.0@`
```
$ ls -lh ~/.conan/data/libselinux/3.0/_/_/package/7a5a46e61ac4a00adf1fe45a7ed646d200a7c49b/lib/

total 3.0M
-rwxr-xr-x. 1 forbinn forbinn 733K Jun 13 09:26 libselinux.so
-rwxr-xr-x. 1 forbinn forbinn 733K Jun 13 09:26 libselinux.so.1
-rwxr-xr-x. 1 forbinn forbinn 749K Jun 13 09:26 libsepol.so
-rwxr-xr-x. 1 forbinn forbinn 749K Jun 13 09:26 libsepol.so.1
```


### Logs
<details><summary>Click to expand log</summary>

```
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
os_build=Linux
[options]
shared=True
[build_requires]
[env]

Installing package: libselinux/3.0
Requirements
    bzip2/1.0.8 from 'conan-center' - Cache
    libselinux/3.0 from 'conan-center' - Cache
    pcre2/10.33 from 'conan-center' - Cache
    zlib/1.2.11 from 'conan-center' - Cache
Packages
    bzip2/1.0.8:da606cf731e334010b0bf6e85a2a6f891b9f36b0 - Cache
    libselinux/3.0:7a5a46e61ac4a00adf1fe45a7ed646d200a7c49b - Download
    pcre2/10.33:18903774d26ee0498535ef95198a1c997e4ca9ba - Cache
    zlib/1.2.11:6af9cc7cb931c5ad942174fd7838eb655717c709 - Cache

Installing (downloading, building) binaries...
libselinux/3.0: Retrieving package 7a5a46e61ac4a00adf1fe45a7ed646d200a7c49b from remote 'conan-center' 
Downloading conanmanifest.txt completed [3.71k]                                          
Downloading conaninfo.txt completed [0.88k]                                              
Downloading conan_package.tgz completed [1249.37k]                                       
Decompressing conan_package.tgz completed [0.00k]                                        
libselinux/3.0: Package installed 7a5a46e61ac4a00adf1fe45a7ed646d200a7c49b
libselinux/3.0: Downloaded package revision 0
bzip2/1.0.8: Already installed!
zlib/1.2.11: Already installed!
pcre2/10.33: Already installed!
```

</details>

## Notes

As you can see in the `ls` command output the `libselinux` and `libsepol` appears 2 times without symlinks. This is due to the fact that the current recipe do not set set `symlinks` flag to `True` inside the `package()` method.

Current [conanfile.py](https://github.com/conan-io/conan-center-index/blob/master/recipes/libselinux/all/conanfile.py#L59)
`self.copy(pattern="*.so*", dst="lib", src=library, keep_path=False)`
Expected:
`self.copy(pattern="*.so*", dst="lib", src=library, keep_path=False, symlinks=True)`


Discussion:

Resolving patch:
diff --git a/recipes/libselinux/all/conanfile.py b/recipes/libselinux/all/conanfile.py
--- a/recipes/libselinux/all/conanfile.py
+++ b/recipes/libselinux/all/conanfile.py
@@ -56,7 +56,7 @@ def package(self):
         self.copy(pattern="LICENSE", dst="licenses", src=_selinux_subfolder)
         for library in [_sepol_subfolder, _selinux_subfolder]:
             self.copy(pattern="*.h", dst="include", src=os.path.join(library, "include"), keep_path=True)
-            self.copy(pattern="*.so*", dst="lib", src=library, keep_path=False)
+            self.copy(pattern="*.so*", dst="lib", src=library, keep_path=False, symlinks=True)
             self.copy(pattern="*.a", dst="lib", src=library, keep_path=False)
 
     def package_info(self):


Test patch:
diff --git a/recipes/libselinux/all/test_package/CMakeLists.txt b/recipes/libselinux/all/test_package/CMakeLists.txt
--- a/recipes/libselinux/all/test_package/CMakeLists.txt
+++ b/recipes/libselinux/all/test_package/CMakeLists.txt
@@ -1,8 +1,6 @@
 cmake_minimum_required(VERSION 2.8.12)
 project(test_package)
 
-set(CMAKE_VERBOSE_MAKEFILE TRUE)
-
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
 conan_basic_setup()